import { ElDialog } from 'element-plus';
import dialogDrag from '@/directives/ElementPlusDialogDrag';
import { h, withDirectives } from 'vue';

const ElDragableDialog = (__props:any, context:any) => {
  return withDirectives(
    h(
      'div',
      h(
        ElDialog,
        {
          appendToBody: false,
          closeOnClickModal: false,
          closeOnPressEscape:false,
          ...context.attrs,
        },
        context.slots
      )
    ),
    [[dialogDrag]]
  );
};

export default ElDragableDialog;